package com.class2;

import java.util.Scanner;

public class GetCode {
    //main函数
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (true){
            int x=in.nextInt();
            int y=in.nextInt();
            boolean z = true;
            int codeTest = getCodeTest(x, y, z);
            System.out.println("测试结果是：\n"+"输入的x是："+x+"\t输入的y是："+y+"\t输入的z是："+z+"\t产生的结果是："+codeTest);
        }
    }
    //测试函数代码
    public static int getCodeTest(int num, int cycle, boolean flag){
        int ret = 0;
        while (cycle>0){
            if (flag){
                ret = num-10;
                break;
            }else {
                if (num%2==0){
                    ret*=10;
                }else {
                    ret++;
                }
            }
            cycle--;
        }
        return ret;
    }
}
